import rclpy
from rclpy.node import Node

def main():
    rclpy.init()
    node = Node('ros2_python_node')
    node.get_logger().info('Hello ROS2 Python')
    node.get_logger().warn('Hello ROS2 Python')
    rclpy.spin(node)
    rclpy.shutdown()